/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package co.edu.univalle.logica;

import co.edu.univalle.modelo.TiposDocumentos;
import co.edu.univalle.persistencia.ITiposDocumentoDAO;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author DILOVE
 */
@Stateless
public class TiposDocumentoLogica implements TiposDocumentoLogicaLocal {
    @EJB
    private ITiposDocumentoDAO tiposDocumentoDAO;
    
    @Override
    public TiposDocumentos consultarPorCodigo(Long codigo) throws Exception {
        return tiposDocumentoDAO.consultarPorCodigo(codigo);
    }

    @Override
    public List<TiposDocumentos> consultar() throws Exception {
        return tiposDocumentoDAO.consultar();
    }
    
}
